package cn.itcast.hotel.service;

import cn.itcast.hotel.pojo.Hotel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("admin")
public interface FeignService {
    @GetMapping("/hotel/{id}")
    Hotel findById(@PathVariable("id") Long id);
}
